package dryven.view;

import java.util.HashMap;
import java.util.Map;

public class ViewData implements ViewDataDictionary {
	private Map<String, Object> _values = new HashMap<String, Object>();

	public Object get(Object key) {
		return _values.get(key);
	}

	public ViewData set(String key, Object value) {
		_values.put(key, value);
		return this;
	}

	@Override
	public Object getRootValue(String name) {
		return get(name);
	}

	@Override
	public Iterable<String> getRootValues() {
		return _values.keySet();
	}
}
